package exception;


import Homework0816.IllegalException;

public class ThrowDemo {
    public static void main(String[] args) {
        Person person = new Person();
        try {
            person.setAge(10000);
        } catch (IllegalException e) {
            throw new RuntimeException(e);
        }
    }
}
